<?php

class UserGroups
{
	private $groups=array();
	
	public function __construct()
	{
		$database=$GLOBALS['DATABASE']->Recopy();
		$sql = "SELECT SnapUserGroupID, GroupName 
		FROM SnapUserGroups ";
		$database->executeSQL($sql);
		while($row=$database->getRow())
		{
			$this->groups[$row['SnapUserGroupID']]=$row['GroupName'];
		}
//		print_r($this->groups);
		
	}
	
	public function getGroups(){return $this->groups;}
		

	
}
